package actions;

import java.awt.event.ActionEvent;

import client_gui.ClientWindow;

public class AlwaysOnTopAcition extends RLMAbstractAction {

	
	public AlwaysOnTopAcition(ClientWindow owner) {
		setActionOwner(owner);
//		putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F8, 0));
		putValue(SMALL_ICON, loadIcon("images/always.png"));
		putValue(NAME, "Always On Top");
		putValue(SHORT_DESCRIPTION, "Uvek na vrhu");
	}
	
	
	public void actionPerformed(ActionEvent e) {
		
		if (getActionOwner().isAlwaysOnTop() == true) {
			getActionOwner().setAlwaysOnTop(false);
		}
		else {
			getActionOwner().setAlwaysOnTop(true);
		}
		
	}
	
}
